var express = require('express');
var router = new express.Router();
var Mock = require('mockjs')

var employee=Mock.mock({
  'list|5': [{
    name: '@cname',
    'dept|1': [{
      name:
        'DEV',
      count:
        4
    },
      {
        name: 'HR'
      }
      ,
      {
        name: 'Fin'
      }
      ,
      {
        name: 'Man'
      }
    ],
    age: '@natural(20,50)',
    'gender|1':
      ['female', 'male']
  }]
})
/*router.get('/add', function (request, response){
  console.log(request.query);
  response.send({
    flag:true
  })
})*/

module.exports= employee.list;
